package com.demo.design.stractural.composite;

public class LeafNode implements TreeNode{

    private String name;

    public LeafNode(String name) {this.name = name;}

    @Override
    public void addNode(TreeNode treeNode) {
    }


    @Override
    public void operate() {
        System.err.println("这里是叶子结点:" + name);
    }
}
